<?php
declare (strict_types=1);

namespace app\index\validate;

use think\Validate;

class Method extends Validate
{
    protected $rule = [
        "bank_name" => "require",
        "bank_open" => "require",
        "bank_account_name" => "require",
        "bank_number" => "require",
        "name" => "require",
        "image" => "require",
        "usdt_type" => "require",
        "usdt_address" => "require"
    ];

    protected $message = [
        'bank_name.require' => '请选择银行',
        'bank_account_name.require' => '请输入开户姓名',
        'bank_number.require' => '请输入银行卡号',
        'bank_open.require' => '请输入开户行地址',
        'name.require' => '请输入真实姓名',
        'image.require' => '请上传收款码',
        'usdt_type.require' => '请输入钱包类型',
        'usdt_address.require' => '请输入钱包地址'
    ];

    protected $scene = [
        'bank' => ['bank_name', 'bank_account_name', 'bank_number', 'bank_open'],
        'wechat' => ['name', 'image'],
        'alipay' => ['name', 'image'],
        'usdt' => ['usdt_type', 'usdt_address']
    ];
}